package com.gwd.task.services;

import com.gwd.task.model.CallResultMsg;
import com.gwd.task.model.PageUtils;
import com.gwd.task.model.UserDTO;

import java.util.List;

/**
 * @author zhiyongming
 * @date 2020/11/10 19:35
 */
public interface UserServer {
    List<UserDTO> findByGroup(Long group);

    List<UserDTO> findAll(UserDTO dto);

    List<UserDTO> findAll();

    PageUtils findByPage(UserDTO dto, PageUtils pageUtils);

    CallResultMsg<?> login(UserDTO dto);

    void save(UserDTO dto);

    void reset(Long userId, String password);

    void remove(Long id);

    void active(Long id);

    UserDTO findById(Long id);
}
